<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
import { isMobile } from '@/util'
export default {
  mounted() {
    const query = this.$route.query
    if (isMobile()) {
      // alert("手机端");
      this.$router.push({name: 'Mobile', query});
    } else {
      // alert("pc端");
      this.$router.push({name: 'Pc', query});
    }
  },
  methods:{}
}
</script>

<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
</style>
